<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QSculpt: qsculpt/include/command/MeshEditCommands.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QSculpt
   &#160;<span id="projectnumber">0.0.1a</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">qsculpt/include/command/MeshEditCommands.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* </span>
<a name="l00002"></a>00002 <span class="comment"> * File:   MeshEditCommands.h</span>
<a name="l00003"></a>00003 <span class="comment"> * Author: rcabral</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Created on October 17, 2010, 4:38 PM</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef MESHEDITCOMMANDS_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define MESHEDITCOMMANDS_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;command/CommandBase.h&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="keyword">class </span><a class="code" href="class_surface_node.html">SurfaceNode</a>;
<a name="l00014"></a>00014 
<a name="l00015"></a><a class="code" href="class_add_surface_command.html">00015</a> <span class="keyword">class </span><a class="code" href="class_add_surface_command.html">AddSurfaceCommand</a> : <span class="keyword">public</span> <a class="code" href="class_command_base.html">CommandBase</a> {
<a name="l00016"></a>00016 <span class="keyword">public</span>:
<a name="l00017"></a>00017     <a class="code" href="class_add_surface_command.html">AddSurfaceCommand</a>();
<a name="l00018"></a>00018     <a class="code" href="class_add_surface_command.html">AddSurfaceCommand</a>(<span class="keyword">const</span> <a class="code" href="class_add_surface_command.html">AddSurfaceCommand</a>&amp; orig);
<a name="l00019"></a>00019     <span class="keyword">virtual</span> ~<a class="code" href="class_add_surface_command.html">AddSurfaceCommand</a>();
<a name="l00020"></a>00020 
<a name="l00021"></a>00021         <span class="comment">// ICommand Interface</span>
<a name="l00022"></a>00022     <span class="keyword">virtual</span> <a class="code" href="class_i_command.html">ICommand</a>* <a class="code" href="class_add_surface_command.html#a7bcfb531a2e27faf4a0d7488f23d7dd8">clone</a>() <span class="keyword">const</span>;
<a name="l00023"></a><a class="code" href="class_add_surface_command.html#a6bbe1452bb8a0605f18be9ae254c13d9">00023</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_add_surface_command.html#a6bbe1452bb8a0605f18be9ae254c13d9">needsUserInteraction</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00024"></a>00024     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_add_surface_command.html#a93991ad4a57481e583f24ac2f8883b46">execute</a>();
<a name="l00025"></a>00025     <span class="keyword">virtual</span> <span class="keywordtype">void</span> undo();
<a name="l00026"></a>00026     <span class="keyword">virtual</span> <span class="keywordtype">void</span> redo();
<a name="l00027"></a><a class="code" href="class_add_surface_command.html#a8e163d2d74aaa4d9aac422678bad5f87">00027</a>     <span class="keyword">virtual</span> QWidget* <a class="code" href="class_add_surface_command.html#a8e163d2d74aaa4d9aac422678bad5f87">getOptionsWidget</a>(){<span class="keywordflow">return</span> NULL;}
<a name="l00028"></a>00028     <span class="comment">// End ICommand Interface</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">private</span>:
<a name="l00031"></a>00031     <a class="code" href="class_surface_node.html">SurfaceNode</a>* _surface;
<a name="l00032"></a>00032 };
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="class_remove_surface_command.html">00034</a> <span class="keyword">class </span><a class="code" href="class_remove_surface_command.html">RemoveSurfaceCommand</a> : <span class="keyword">public</span> <a class="code" href="class_command_base.html">CommandBase</a> 
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 <span class="keyword">public</span>:
<a name="l00037"></a>00037     
<a name="l00038"></a>00038     <a class="code" href="class_remove_surface_command.html">RemoveSurfaceCommand</a>();
<a name="l00039"></a>00039     <a class="code" href="class_remove_surface_command.html">RemoveSurfaceCommand</a>(<span class="keyword">const</span> <a class="code" href="class_remove_surface_command.html">RemoveSurfaceCommand</a>&amp; orig);
<a name="l00040"></a>00040     <span class="keyword">virtual</span> ~<a class="code" href="class_remove_surface_command.html">RemoveSurfaceCommand</a>();
<a name="l00041"></a>00041     
<a name="l00042"></a>00042     <span class="comment">// ICommand Interface</span>
<a name="l00043"></a>00043     <span class="keyword">virtual</span> <a class="code" href="class_i_command.html">ICommand</a>* <a class="code" href="class_remove_surface_command.html#a3ddf6bac0e4d6539f4e502cbd8b1798b">clone</a>() <span class="keyword">const</span>;
<a name="l00044"></a><a class="code" href="class_remove_surface_command.html#a80935ab362fca2ffd7666342f992d986">00044</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_remove_surface_command.html#a80935ab362fca2ffd7666342f992d986">needsUserInteraction</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00045"></a>00045     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_remove_surface_command.html#a1f7737d86ca3d8cd2a46e64531e0252a">execute</a>();
<a name="l00046"></a>00046     <span class="keyword">virtual</span> <span class="keywordtype">void</span> undo();
<a name="l00047"></a>00047     <span class="keyword">virtual</span> <span class="keywordtype">void</span> redo();
<a name="l00048"></a><a class="code" href="class_remove_surface_command.html#aa2b3caea88488d3305499bef5ad31230">00048</a>     <span class="keyword">virtual</span> QWidget* <a class="code" href="class_remove_surface_command.html#aa2b3caea88488d3305499bef5ad31230">getOptionsWidget</a>(){<span class="keywordflow">return</span> NULL;}
<a name="l00049"></a>00049     <span class="comment">// End ICommand Interface</span>
<a name="l00050"></a>00050     
<a name="l00051"></a>00051 <span class="keyword">private</span>:
<a name="l00052"></a>00052     <a class="code" href="class_surface_node.html">SurfaceNode</a>* _surface;
<a name="l00053"></a>00053 };
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="class_add_group_command.html">00056</a> <span class="keyword">class </span><a class="code" href="class_add_group_command.html">AddGroupCommand</a> : <span class="keyword">public</span> <a class="code" href="class_command_base.html">CommandBase</a>
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00059"></a>00059     <a class="code" href="class_add_group_command.html">AddGroupCommand</a>();
<a name="l00060"></a>00060     <a class="code" href="class_add_group_command.html">AddGroupCommand</a>(<span class="keyword">const</span> <a class="code" href="class_add_group_command.html">AddGroupCommand</a>&amp; orig);
<a name="l00061"></a>00061     ~<a class="code" href="class_add_group_command.html">AddGroupCommand</a>();
<a name="l00062"></a>00062     
<a name="l00063"></a>00063     <span class="comment">// ICommand Interface</span>
<a name="l00064"></a>00064     <span class="keyword">virtual</span> <a class="code" href="class_i_command.html">ICommand</a>* <a class="code" href="class_add_group_command.html#ad5469ba8ce0746cbd4b93d647c030074">clone</a>() <span class="keyword">const</span>;
<a name="l00065"></a><a class="code" href="class_add_group_command.html#aaaf39e77bf8be30cfa6fe7b9d4487071">00065</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_add_group_command.html#aaaf39e77bf8be30cfa6fe7b9d4487071">needsUserInteraction</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00066"></a>00066     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_add_group_command.html#aed148132c820b917e2ee54a3b0bececd">execute</a>();
<a name="l00067"></a>00067     <span class="keyword">virtual</span> <span class="keywordtype">void</span> undo();
<a name="l00068"></a>00068     <span class="keyword">virtual</span> <span class="keywordtype">void</span> redo();
<a name="l00069"></a><a class="code" href="class_add_group_command.html#a536c924bc6c2ce8906b36ba6e2c81fb1">00069</a>     <span class="keyword">virtual</span> QWidget* <a class="code" href="class_add_group_command.html#a536c924bc6c2ce8906b36ba6e2c81fb1">getOptionsWidget</a>(){<span class="keywordflow">return</span> NULL;}
<a name="l00070"></a>00070     <span class="comment">// End ICommand Interface</span>
<a name="l00071"></a>00071     
<a name="l00072"></a>00072 };
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 
<a name="l00075"></a><a class="code" href="class_smooth_surface_command.html">00075</a> <span class="keyword">class </span><a class="code" href="class_smooth_surface_command.html">SmoothSurfaceCommand</a> : <span class="keyword">public</span> <a class="code" href="class_command_base.html">CommandBase</a>
<a name="l00076"></a>00076 {
<a name="l00077"></a>00077 <span class="keyword">public</span>:
<a name="l00078"></a>00078     <a class="code" href="class_smooth_surface_command.html">SmoothSurfaceCommand</a>();
<a name="l00079"></a>00079     <a class="code" href="class_smooth_surface_command.html">SmoothSurfaceCommand</a>(<span class="keyword">const</span> <a class="code" href="class_smooth_surface_command.html">SmoothSurfaceCommand</a>&amp; orig);
<a name="l00080"></a>00080     <span class="keyword">virtual</span> ~<a class="code" href="class_smooth_surface_command.html">SmoothSurfaceCommand</a>();
<a name="l00081"></a>00081     
<a name="l00082"></a>00082     <span class="comment">// ICommand Interface</span>
<a name="l00083"></a>00083     <span class="keyword">virtual</span> <a class="code" href="class_i_command.html">ICommand</a>* <a class="code" href="class_smooth_surface_command.html#a8ee27a12ca93874c9d1323c5e4f757f4">clone</a>() <span class="keyword">const</span>;
<a name="l00084"></a><a class="code" href="class_smooth_surface_command.html#a1d8337cf884a7c4b37fb5cceb247fb9d">00084</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_smooth_surface_command.html#a1d8337cf884a7c4b37fb5cceb247fb9d">needsUserInteraction</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00085"></a>00085     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_smooth_surface_command.html#a5b0e2f600a827ed8b5da725889ae1962">execute</a>();
<a name="l00086"></a>00086     <span class="keyword">virtual</span> <span class="keywordtype">void</span> undo();
<a name="l00087"></a>00087     <span class="keyword">virtual</span> <span class="keywordtype">void</span> redo();
<a name="l00088"></a><a class="code" href="class_smooth_surface_command.html#ac7d1b11f6023409d75c4673436aa7609">00088</a>     <span class="keyword">virtual</span> QWidget* <a class="code" href="class_smooth_surface_command.html#ac7d1b11f6023409d75c4673436aa7609">getOptionsWidget</a>(){<span class="keywordflow">return</span> NULL;}
<a name="l00089"></a>00089     <span class="comment">// End ICommand Interface</span>
<a name="l00090"></a>00090     
<a name="l00091"></a>00091 <span class="keyword">private</span>:
<a name="l00092"></a>00092     <span class="keyword">struct </span>Impl;
<a name="l00093"></a>00093     QScopedPointer&lt;Impl&gt; d_;
<a name="l00094"></a>00094 };
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="class_test_command.html">00096</a> <span class="keyword">class </span><a class="code" href="class_test_command.html">TestCommand</a> : <span class="keyword">public</span> <a class="code" href="class_command_base.html">CommandBase</a> {
<a name="l00097"></a>00097 <span class="keyword">public</span>:
<a name="l00098"></a>00098     <a class="code" href="class_test_command.html">TestCommand</a>();
<a name="l00099"></a>00099     <a class="code" href="class_test_command.html">TestCommand</a>(<span class="keyword">const</span> <a class="code" href="class_test_command.html">TestCommand</a>&amp; orig);
<a name="l00100"></a>00100     <span class="keyword">virtual</span> ~<a class="code" href="class_test_command.html">TestCommand</a>();
<a name="l00101"></a>00101     
<a name="l00102"></a>00102     <span class="comment">// ICommand Interface</span>
<a name="l00103"></a>00103     <span class="keyword">virtual</span> <a class="code" href="class_i_command.html">ICommand</a>* <a class="code" href="class_test_command.html#a04385cc2119836320558dde0b872f6bf">clone</a>() <span class="keyword">const</span>;
<a name="l00104"></a>00104     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_test_command.html#a767268a5134fd36df5b797a0623251c6">needsUserInteraction</a>() <span class="keyword">const</span>;
<a name="l00105"></a>00105     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_test_command.html#a4405c511268e83fadeccf795d061bfae">execute</a>();
<a name="l00106"></a>00106     <span class="keyword">virtual</span> <span class="keywordtype">void</span> undo();
<a name="l00107"></a>00107     <span class="keyword">virtual</span> <span class="keywordtype">void</span> redo();
<a name="l00108"></a>00108     <span class="keyword">virtual</span> QWidget* <a class="code" href="class_test_command.html#a2cb626859a6cc4ce18888ae9ab0021c3">getOptionsWidget</a>();
<a name="l00112"></a>00112     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_test_command.html#ad0af23f7df7f34341907daa89e14939a">mousePressEvent</a>(QMouseEvent *e);
<a name="l00113"></a>00113     
<a name="l00119"></a>00119     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_test_command.html#a42ba7e4ebc71c1c51ffe49c4d6d7b25b">mouseReleaseEvent</a>(QMouseEvent *e);
<a name="l00120"></a>00120     
<a name="l00126"></a>00126     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_test_command.html#aad2be6957fdb7a7848610d2bef8d8493">mouseMoveEvent</a>(QMouseEvent *e);
<a name="l00127"></a>00127     
<a name="l00131"></a>00131     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_test_command.html#a2ce2c4d525a5cdedf97e456abea63ec9">paintGL</a>(<a class="code" href="class_gl_canvas.html">GlCanvas</a> *c);
<a name="l00132"></a>00132     <span class="comment">// End ICommand Interface</span>
<a name="l00133"></a>00133     
<a name="l00134"></a>00134 <span class="keyword">private</span>:
<a name="l00135"></a>00135     <span class="keyword">struct </span><a class="code" href="struct_test_command_1_1_impl.html">Impl</a>;
<a name="l00136"></a>00136     QScopedPointer&lt;Impl&gt; _d;
<a name="l00137"></a>00137 };
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#endif  </span><span class="comment">/* MESHEDITCOMMANDS_H */</span>
<a name="l00140"></a>00140 
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sat Aug 27 2011 15:38:52 for QSculpt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
